package com.qf.hsr.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author q
 * @version V1.0
 * @date 2021/11/12
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class User {

    private Integer userId;
    private String username;
    private String password;
    private Integer gender;
    //@DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date birth;

}
